﻿using Client.Framework.Message;
using Google.Protobuf;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Client.Message.Request
{
    /// <summary>
    /// Author: Leil
    /// Description: FileSendReq
    /// CreateTime: 2020/6/16 14:56:15
    /// </summary>
    class FileSendReq : RequestBaseMessage
    {
        public FileSendReq(int msgId) : base(msgId)
        {
        }

        public File File { get; set; }

        public override byte[] Serialize()
        {
            SendFile req = new SendFile
            {
                File = File
            };
            return req.ToByteArray();
        }
    }
}
